import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import {toolsRoutes} from './tools'
export const routes = [
  {
    path: '/',
    name: 'home',
    title:'首页',
    component: HomeView,
    meta:{
      showInHeader: true,
    }
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/login/index.vue'),
  },
  ...toolsRoutes
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes
})

export default router
